#include <iostream>

int main(int argc, char **argv)
{
  double a;
  std::cin >> a;
  std::cout << "V -> " << a*a*a << std::endl;
  std::cout << "S -> " << 6*a*a << std::endl;
  return 0;
}
